/**
 * Created by oneminute on 8/2/14.
 */

var logger = require("../lib/utils/logger");
var httpMocks = require("../test/lib/http-mock");
var route = require("../routes/route");
var mockExpress = httpMocks.createExpress();

var request = httpMocks.createExpressRequest({
    method: 'GET',
    url: '/search'
});
var response = httpMocks.createExpressResponse();

route.setup(mockExpress);

mockExpress.invoke(request, response, function () {
    console.log("invoke completed");
    logger.info(response._getData());
});
